<?php

// print_r($_GET);
$link =  mysqli_connect("localhost","root","root","2116");

$id = $_GET['id'];

$sql = "SELECT * FROM news WHERE id=$id";

$res =  mysqli_query($link,$sql);

$one = mysqli_fetch_assoc($res);
echo json_encode($one);



?>